/**
 ** This file is part of FK Klistret Extensions. FK Klistret Extensions 
 ** is free software: you can redistribute it and/or modify it under the 
 ** terms of the GNU General Public License as published by the Free 
 ** Software Foundation, either version 3 of the License, or (at your option) 
 ** any later version.

 ** FK Klistret Extensions is distributed in the hope that it will be 
 ** useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 ** General Public License for more details. You should have received a
 ** copy of the GNU General Public License along with FK Klistret Extensions. 
 ** If not, see <http://www.gnu.org/licenses/>
 */
package se.fk.klistret.console;

/**
 * 2011-07-11, The comments below are from 2005 and the code is has since
 * upgraded to the Ant 1.8 platform. The patterns and design of this project
 * should not be reused since they are not considered of any quality. The code
 * was written quickly without long term concerns.
 * <p>
 * 
 * 2005, Simple bean representing a SCP location (i.e. host, remote directory,
 * user, password and a pattern to find files by name).
 * 
 * @author Matthew Young
 * 
 */
public class SCPLocation {

	/**
	 * Remote directory
	 */
	private String directory;

	/**
	 * Source host name
	 */
	private String hostname;

	/**
	 * Login user name
	 */
	private String user;

	/**
	 * Login password
	 */
	private String password;

	/**
	 * File name pattern
	 */
	private String pattern;

	/**
	 * Constructor (empty)
	 */
	public SCPLocation() {
	}

	/**
	 * Set directory
	 * 
	 * @param directory
	 */
	public void setDirectory(String directory) {
		this.directory = directory;
	}

	/**
	 * Get directory
	 * 
	 * @return String
	 */
	public String getDirectory() {
		return this.directory;
	}

	/**
	 * Set hostname
	 * 
	 * @param hostname
	 */
	public void setHostname(String hostname) {
		this.hostname = hostname;
	}

	/**
	 * Get hostname
	 * 
	 * @return String
	 */
	public String getHostname() {
		return this.hostname;
	}

	/**
	 * Set user
	 * 
	 * @param user
	 */
	public void setUser(String user) {
		this.user = user;
	}

	/**
	 * Get user
	 * 
	 * @return String
	 */
	public String getUser() {
		return this.user;
	}

	/**
	 * Set password
	 * 
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * Get password
	 * 
	 * @return String
	 */
	public String getPassword() {
		return this.password;
	}

	/**
	 * Set file name pattern
	 * 
	 * @param pattern
	 */
	public void setPattern(String pattern) {
		this.pattern = pattern;
	}

	/**
	 * Get file name pattern
	 * 
	 * @return String
	 */
	public String getPattern() {
		return this.pattern;
	}

	/**
	 * Display information
	 * 
	 */
	public String toString() {
		return String
				.format("hostname [%s], directory [%s], user [%s], password [%s], pattern [%s]",
						hostname, directory, user, password, pattern);
	}
}
